package com.htu.courseService.Talk.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.htu.courseService.Talk.entity.TalkInfo;
import com.htu.courseService.Talk.vo.TalkInfoDto;
import com.htu.courseService.Talk.vo.TalkListDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface TalkInfoMapper extends BaseMapper<TalkInfo> {
    IPage<TalkListDto> getTalkList(Page<Object> objectPage,@Param("title") String title);

    IPage<TalkListDto> getTalkInfoList(Page<Object> objectPage);

    TalkInfoDto getTalkDetail(@Param("id") Integer id);

    IPage<TalkListDto> getMyTalkList(Page<Object> objectPage,@Param("title") String title,
                                     @Param("userId") Long userId);

    IPage<TalkListDto> getMyCommentList(Page<Object> objectPage,@Param("title") String title,
                                        @Param("userId") Long id);
}
